from UI自动化.pytest框架.项目名称.base基类.接口base.LaoHuangLi import LaoHuangLi
from UI自动化.pytest框架.项目名称.utils工具包.bulid_data import read_xml
from UI自动化.pytest框架.项目名称.config import BaseDir

class LaoHuangLi_page():

    def __init__(self):
        self.LaoHuangLi_base = LaoHuangLi()
        self.fileName = BaseDir+"/data测试数据/data_laohuangli.xml"

    def getLaoHuangLi_page(self,key,date):
        data = {"key":key,"date":date}
        # 读取xml配置文件
        headers = read_xml(self.fileName,"laohaungli","headers")
        # print(headers)
        result,result_time = self.LaoHuangLi_base.getLaoHuangLi("post",data,headers)
        return result,result_time




if __name__ == '__main__':

    LaoHuangLi_page().getLaoHuangLi_page("2b1e89319e5d888a525a421ea57ba3c5","2022-11-11")


